/**
* @(#)com.pylc.model.entity.Message.java
* 
* @date 2012-6-17
*/
package com.pylc.model.entity;

import java.util.Date;

import javax.persistence.Column;

/** 
 * 
 * @author <a href="mailto:yuanyichen@gmail.com">（H0rol4</a>
 * @version 1.0 
 */

public class Message extends BaseEntity {

	private static final long serialVersionUID = -131040234076841328L;
	
	private Message parentId;
	private Member fromMemberId;
	private Member toMemberId;
	private String title;
	private String body;
	private Date sentTime;
	private boolean isOpened;
	private int state;
	private int type;
	private String isBroadcast;
	
	@Column
	public Message getParentId() {
		return parentId;
	}
	public void setParentId(Message parentId) {
		this.parentId = parentId;
	}
	
	@Column
	public Member getFromMemberId() {
		return fromMemberId;
	}
	public void setFromMemberId(Member fromMemberId) {
		this.fromMemberId = fromMemberId;
	}
	
	@Column
	public Member getToMemberId() {
		return toMemberId;
	}
	public void setToMemberId(Member toMemberId) {
		this.toMemberId = toMemberId;
	}
	
	@Column
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	
	@Column
	public Date getSentTime() {
		return sentTime;
	}
	public void setSentTime(Date sentTime) {
		this.sentTime = sentTime;
	}
	
	@Column
	public boolean isOpened() {
		return isOpened;
	}
	public void setOpened(boolean isOpened) {
		this.isOpened = isOpened;
	}
	
	@Column
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
	@Column
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	
	@Column
	public String getIsBroadcast() {
		return isBroadcast;
	}
	public void setIsBroadcast(String isBroadcast) {
		this.isBroadcast = isBroadcast;
	}	
}
